package com.qk.management.controller;


import com.qk.common.Result;
import com.qk.dto.user.UserLoginDTO;
import com.qk.management.service.UserService;
import com.qk.vo.user.UserLoginVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @文件名: LoginController
 * @作者: DX
 * @创建日期: 2025/10/10
 * @描述:
 */
@RestController
public class LoginController {

    @Autowired
    private UserService userService;
    @PostMapping("/login")
    public Result login(@RequestBody UserLoginDTO userLoginDTO) {
        UserLoginVO vo =  userService.login(userLoginDTO);
        return Result.success(vo);
    }
}
